package www.icomwell.com.viperdemo.Modules.List.ApplicationLogic.Interactor;

import java.util.List;

import www.icomwell.com.viperdemo.Modules.List.ApplicationLogic.Manager.ListDataManager;

/**
 * Created by leeesven on 17/5/23.
 */

public class ListInteractor implements ListInteractorInput{

	private ListDataManager mListDataManager;

	private ListInteractorOutput output;

	public ListInteractor(ListInteractorOutput output){
		this.output = output;

		mListDataManager = new ListDataManager();
	}

	@Override
	public void findUpcomingItems() {
		List<UpcomingItem> upcomingItems = mListDataManager.fetchUpcomingData();

		output.foundUpcomingItems(upcomingItems);
	}
}
